<div>
	<div class="panel panel-primary ">
	   <div class="panel-heading p0 ">	
	      	<!-- 面包屑导航 -->
	       	<ol class="breadcrumb m0 nav-style">
				<li><a href="/#"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> &nbsp;监狱结构管理</a></li>
				<li class="active">添加监狱结构</li>
			</ol>
	   </div>
		<div class=" panel-body">
			<form class="form-horizontal col-xs-offset-2">
				
				<div class="form-group ">
				    <label for="inputPassword3" class="col-xs-2 control-label">所属部门</label>
				    <div class="col-xs-5">
				      	<select class="form-control"   ng-model="firstStruct1">
				      		<option ng-repeat="data in firstStruct" value="{{data.id}}">{{data.name}}</option>
				      		
				      	</select>
				    </div>
				</div>
				<div class="form-group ">
                    <label  class="col-xs-2 control-label">部门类型</label>
                    <div class="col-xs-5">
                        <select class="form-control type" >
                            
                            
                           	<option   value="2">分监区</option>
                        </select>
                    </div>
                </div>
	  			<div class="form-group ">
				    <label for="inputPassword3" class="col-xs-2 control-label">部门名称</label>
				    <div class="col-xs-5">
				      <input type="text" ng-model="structureName" class="form-control"  placeholder="请输入结构名称" >
				    </div>
				</div>
				
				<div class="form-group ">
				    <label for="inputPassword3" class="col-xs-2 control-label">备注</label>
				    <div class="col-xs-5">
				     	<textarea ng-model="remark" style="resize:none;" class="form-control" rows="3"></textarea>
				    </div>
				</div>
				<div class="form-group ">
				    <button ng-click="build()" class="btn col-xs-offset-4 btn-primary">建立</button>
				</div>
	  		</form>


		</div>
	</div>

</div>

<!-- 成功模态框 -->
<div class="modal fade " id="goodmodel">
  <div class="modal-dialog" style="width: 300px;"> 
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">成功</h4>
      </div>
      <div class="modal-body">	
      	<span id="idNumber" ></span>
        <p>建立成功</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal





<!-- 失败模态框 -->
<div class="modal fade " id="badmodal">
  <div class="modal-dialog" style="width: 300px;"> 
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">失败</h4>
      </div>
      <div class="modal-body">	
      	<span id="idNumber" ></span>
        <p>操作失败</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal-->
